<template>
  <ul v-if="mediaExtends" class="mediainfo">
    <li>
      <span>作者：</span>
      <span>{{mediaExtends.author}}</span>
    </li>
    <li>
      <span>是否允许评论：</span>
      <span>
        <span v-if="mediaExtends.isallowcomment == 1">允许</span>
        <span v-else type="danger">禁止</span>
      </span>
    </li>
    <li>
      <span>来源名称：</span>
      <span>{{mediaExtends.copyfrom}}</span>
    </li>
    <li>
      <span>来源IRL：</span>
      <span>{{mediaExtends.copyurl}}</span>
    </li>
  </ul>
</template>

<script>
  export default {
    name: "ArticleCommon",
    props: {
      mediaExtends: {
        type: Object,
        required: true
      }
    }
  }
</script>

<style scoped>
  ul li{
    list-style-type: none;
    float: left;
    width: 50%;
  }
  .tag {
    margin-right: 5px;
  }
</style>
